import { get, post } from './http'

interface Login{
  Username: string,
  Password: string
}

/**
 * 登录
 * @param Username {string} 用户名 
 * @param Password {string} 密码 需md5加密
 */
export const apiLogin = (params:Login) => {
  return post('/sysuser/login',params)
}

/**
 * 获取系统待办通知
 */
export const apiSystemMessage = () => {
  return get('/custom/message/listV2',{})
}

/**
 * 已读待办
 * @param Id {number} 待办事项id
 */
export const apiSystemMessageRead = ({ Id }: {Id:number}) => {
  return post('/custom/message/read',{Id})
}

/**
 * 获取组长/组员下销售接口
 */
export const apiSellerList = () => {
  return get('/custom/seller/check/list',{})
}